const log = (elem, index) => {
    console.log(index+' : '+elem)
}
let a = [1,2,3]
a.forEach(log)
